import { Component } from 'react';
import BeforeRoter from '@/hoc/BeforeRouter';

class ClassComponentDemo extends Component {
  componentDidMount() {
    console.log('mounted');
  }

  render() {
    return <div>hello world</div>;
  }
}

function TestViews() {
  return (
    <div>
      <ClassComponentDemo />
    </div>
  );
}
export default BeforeRoter(TestViews);
